import { getCurrentInstance } from 'vue'

export default function useInstance() {
  /**
   * proxy 当前组件实例
   */
  const { appContext, proxy } = getCurrentInstance()
  const globalProperties = appContext.config.globalProperties
  return { appContext, proxy, globalProperties }
}
